home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / modules / sy / panel / scripts / DefineButton2_76 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2002-03-20  |  813 b   |  36 lines

  1. on(release){
  2.    tellTarget("_level50")
  3.    {
  4.       gotoAndStop("off");
  5.    }
  6.    setProperty("colour", _visible, "0");
  7.    if(eval("../:myList").substr(item,"1") eq "1")
  8.    {
  9.       check = "0";
  10.       x = "1";
  11.       while(length(eval("../:myList")) >= x)
  12.       {
  13.          check += eval("../:myList").substr(x,"1");
  14.          x += "1";
  15.       }
  16.       if("1" < check)
  17.       {
  18.          fsSwitch = "0";
  19.          set("_level40/sound/lib:sound","251");
  20.          call("_level40/sound/lib:play");
  21.          gotoAndStop(30);
  22.       }
  23.    }
  24.    else
  25.    {
  26.       fsSwitch = "1";
  27.       set("_level40/sound/lib:sound","250");
  28.       call("_level40/sound/lib:play");
  29.       gotoAndStop(40);
  30.    }
  31.    if(eval("../:syncDestType") == "2")
  32.    {
  33.       fscommand("sy_op_change",item add ":" add fsSwitch);
  34.    }
  35. }
  36.